<?php echo $this->Html->script(array('jquery.livequery.js','home.js'),array('inline' => false));?>
<?php //echo $this->Html->css(array(),NULL, array('inline' => false));?>
<style type="text/css">
    #edit table,#edit table th,#edit-button{
        background: none !important;
    }
    #edit table th{
        padding-left: 90px;
        width: 35%;
    }
    div.edit-box{
        border: none !important;
    }
</style>
<div id="tab">
	<ul class="user" style="width: 100%;">
		<li class="active" style="width: 49%;"><a href="javascript:;"><span>Thông tin cá nhân</span></a></li>
		<li style="width: 49%;"><a href="#"><span>Nạp tài khoản</span></a></li>
	</ul>
</div>
<div id="edit">
    <form action="/UsersNew/index" method="post">
    <div class="edit-box">
    	<h3>Tài khoản cá nhân</h3>
    	<center>
    		<table width="100%" cellspacing="5" cellpadding="0" border="0">
    		  <tbody><tr>
    			<th>Tên đăng nhập</th>
    			<td><?php echo $userCurrent['username']; ?></td>
    		  </tr>
    		  <tr>
    			<th>Tên đầy đủ</th>
    			<td>
                    <input type="text" class="input3" name="fullname" value="<?php echo $userCurrent['full_name']; ?>" />
                </td>
    		  </tr>
    		  <tr>
    			<th>Email</th>
    			<td>
                    <input type="text" class="input3" name="email" value="<?php echo $userCurrent['email']; ?>" />
                </td>
    		  </tr>
              <tr>
    			<th>Skype</th>
    			<td>
                    <input type="text" class="input3" name="skype" value="<?php echo $userCurrent['skype']; ?>" />
                </td>
    		  </tr>
    		</tbody></table>
    	</center>
    </div>
    <div id="edit-button">
    	<input type="submit" value="Cập nhật" name="" />
    </div>
    </form>
    <div class="edit-box">
    	<h3>Thông tin tài khoản</h3>
    	<center>
    		<table width="100%" cellspacing="5" cellpadding="0" border="0">
    		  <tbody><tr>
    			<th>Tổng tiền còn</th>
    			<td><?php echo $userCurrent['total_money'];?></td>
    		  </tr>
    		  <tr>
    			<th>Tổng số giao dịch</th>
    			<td><?php echo $userCurrent['total_transaction']; ?></td>
    		  </tr>
    		  <tr>
    			<th>Tổng thời gian giao dịch</th>
    			<td><?php echo $userCurrent['total_time_advice']; ?></td>
    		  </tr>
              <?php if($userCurrent['group_id'] == 2){?>
                  <tr>
                    <th>Tổng lượt bình chọn</th>
                    <td><?php echo $userCurrent['total_rate'] ?></td>
                  </tr>
                  <tr>
                    <th>Tổng save</th>
                    <td><?php echo $userCurrent['total_save'] ?></td>
                  </tr>
              <?php } ?>
    		</tbody></table>
    	</center>
    
    </div>
</div>